<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    @include('public.h5_head')
    <title>待催款订单</title>
    <script src="{{ env('CDN_DOMAIN_NAME') }}/js/commonjs/rem.js"></script>
    <link rel="stylesheet" type="text/css" href="{{ env('CDN_DOMAIN_NAME') }}/css/commoncss/common.css"/>
    <link rel="stylesheet" type="text/css" href="{{ env('CDN_DOMAIN_NAME') }}/css/outcome.css"/>
</head>
<script src="{{ env('CDN_DOMAIN_NAME') }}/js/commonjs/iscroll.js"></script>
<script src="{{ env('CDN_DOMAIN_NAME') }}/js/app.js"></script>
<script src="{{ env('CDN_DOMAIN_NAME') }}/js/commonjs/common.js"></script>
<body>
<div id="box_outcome">
    <div class="wrap">
        <div class="main_outcome">
            @if(count($datas) == 0)
                <div class="main_empty">
                    <div class="outcome_empty">
                        <div class="outcome_img">
                            <img src="/img/00013.png" alt="" />
                        </div>
                    </div>
                    <p class="outcome_wrods">目前没有待催款订单</p>
                </div>
            @else
                @foreach($datas as $data)

                    <div class="outcome_product">
                        <div class="outcome_title">
                            <div class="outcome_icon">
                                <img src="/img/00004.png" alt="" />
                                <span>{{ $brands[$data->brand] }}</span>
                                <div class="outcome_success">
                                    订单超时
                                </div>
                            </div>
                            <div class="outcome_code"><span>订单编号：</span>{{ $data->ordernum }}</div>
                        </div>
                        <div class="outcome_list" onclick="window.location.href='/produc?good_id={{ $data->pro_id }}'">
                            <div class="outcome_list_l">
                                <img src="{{ env('CDN_DOMAIN_NAME') }}/upload/{{ $data->face }}" alt="" class="outcome_list_img" />
                            </div>
                            <div class="outcome_list_r">
                                <div class="outcome_list_name">
                                    <p class="outcome_list_tit">{{ $data->title }}</p>
                                    <p class="outcome_price">￥<b>{{sprintf("%.2f", $data->total_price/$data->num) }}</b></p>
                                </div>
                                <p class="outcome_list_words">款号：{{ $data->girard }}</p>
                                <div class="outcome_list_color">
                                    <p class="outcome_list_hue">颜色：{{ $data->color }}</p>
                                    <p class="outcome_list_postage">数量：{{ $data->num }}手</p>
                                </div>
                                <div class="outcome_list_b">
                                    <p class="outcome_sum">合计：<i>￥<b>
                                    @if($data->is_owe)
                                    {{sprintf("%.2f", $data->downpayment) }}
                                    @else
                                    {{sprintf("%.2f", $data->total_price) }}
                                    @endif
                                    </b></i></p>
                                </div>
                            </div>
                        </div>
                        <div class="outcome_info">
                            <p class="outcome_name">买家：{{ $data->addressee_name }}</p>
                            <p class="outcome_tel">电话：{{ $data->addressee_tel }}</p>
                        </div>
                    </div>
            @endforeach
        @endif
        </div>
    </div>
</div>
</body>
<script>
    scroll();
</script>
</html>
